<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改会员信息</title>
    <link rel="stylesheet" type="text/css" href="../css/add.css"/> 
</head>
<body>
<?php
    require "connect.php";
    //通过id修改
    $id = $_GET['id'];
    $sql = $link->query("SELECT * FROM members WHERE id=$id");
    $sql_arr = mysqli_fetch_assoc($sql); 
?>
 <h1>修改会员信息</h1>
<div class="add_form" style="height: 650px;">
<br>
<form action="action-edit.php" method="post">
    I &emsp;&emsp;D:<input type="text" name="id" value="<?php echo $sql_arr['id']?>">  <br><br>
    姓&emsp;&emsp;名：<input type="text" name="name" value="<?php echo $sql_arr['name']?>">  <br><br>
    性&emsp;&emsp;别：<input type="text" name="gender" value="<?php echo $sql_arr['gender']?>">   <br><br>
    年&emsp;&emsp;龄：<input type="text" name="age" value="<?php echo $sql_arr['age']?>">   <br><br>
    电&emsp;&emsp;话：<input type="text" name="phone" value="<?php echo $sql_arr['phone']?>">   <br><br>
    住&emsp;&emsp;址：<input type="text" name="address" value="<?php echo $sql_arr['address']?>">   <br><br>
    学&emsp;&emsp;历：<input type="text" name="membernum" value="<?php echo $sql_arr['membernum']?>">   <br><br>
    出生日期：<input type="date" name="birth" value="<?php echo $sql_arr['birth']?>">   <br><br>
    个人简介：<input type="text" name="introduction" value="<?php echo $sql_arr['introduction']?>">   <br><br>
    <input type="submit" value="提交修改" style="width: 15%;">
</form>
</div>
</body>
</html>
